package com.joker.dao;

import com.joker.pojo.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author JokerKS
 * @Date 2021/12/09 19:30
 * @Version 1.0
 */
public interface CommentRepository extends JpaRepository<Comment, Long> {

	List<Comment> findByBlogIdAndParentCommentNull(Long blogId, Sort sort);
}
